﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Mukhopatro.BusinessLogicLayer;

namespace Mukhopatro
{
    public partial class news : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadNews();
            }
        }

        private void LoadNews()
        {
            CustomerNewsContentBLL bll = new CustomerNewsContentBLL();
            repNews.DataSource = bll.GetCustomerNewsContent(SessionManager.CustomerId);
            repNews.DataBind();
        }
    }
}